package org.hdax.dm.dao.entitydao;

import org.hdax.dm.entity.cinema.DmCinema;
import org.hdax.dm.entity.order.DmOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.transaction.annotation.Transactional;

public interface DmOrderDao extends JpaRepository<DmOrder, Long>, JpaSpecificationExecutor<DmOrder> {
    @Transactional
    @Modifying
    void deleteByOrderNo(String orderNo);
}
